<%@page import="bean.FmMemberDTO"%>
<%@page import="bean.FmMemberVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel='stylesheet' href='./css/join.css' />
<script src = './js/member.js'></script>

</head>
<body>
	<jsp:useBean id = 'vo' class = 'bean.FmMemberVO'/>
	<jsp:setProperty property = '*' name="vo"/>
	<%
		FmMemberDTO dto = new FmMemberDTO();
			
			dto.setVo(vo);
			
			vo = dto.select();
	%>


	<div id='input_title' class = 'content'>
		<h1 align='center'>회원정보 수정</h1>
		<form name='modifyFrm' method='post' class ='inputContent'>
		
			<input type = 'hidden' name = 'mid' value = '<%=vo.getMid()%>'/>
			
			<div class = 'line'>
			<hr/>
			</div>
			
			
			
			<div class = 'midpart'>
				<div class ='input'><label>아이디</label></div><input type='text' size = '23' maxlength = '12' value="<%=vo.getMid()%>" disabled /><p/>
				<div class='input' ><label>비밀번호</label> </div><input type='password' name='pwd' size = '23' maxlength = '12' /> <p/>
				<div class ='input' ><label>비밀번호 확인</label></div><input type='password' name='pwd2' size = '23' maxlength = '12'/>
				<p/>
			</div>
	
	
			
			<div class = 'line'>
				<hr/>
			</div>
	
	
	
			
			<div class = 'infopart'>
				<div class ='input' ><label>성명</label></div><input type='text' name='irum' size = '23' maxlength = '20' value="<%=vo.getIrum()%>"><p/>
				<div class ='input' ><label>연락처</label></div>
				<select name='pn1' size='1'>
					<option <% if(vo.getPn1().equals("010")){ %> selected="selected" <%} %> value='010'>010</option>
					<option <% if(vo.getPn1().equals("011")){ %> selected="selected" <%} %> value='011'>011</option>
					<option <% if(vo.getPn1().equals("016")){ %> selected="selected" <%} %> value='016'>016</option>
					<option <% if(vo.getPn1().equals("017")){ %> selected="selected" <%} %> value='017'>017</option>
					<option <% if(vo.getPn1().equals("019")){ %> selected="selected" <%} %> value='019'>019</option>
				</select>
				<label>-</label>
				<input type='text' name='pn2' size="1" maxlength="4" value="<%=vo.getPn2()%>"/>
				<label>-</label>
				<input type='text' name='pn3' size="1" maxlength="4" value="<%=vo.getPn3()%>"/>
				<p/>
				<div class ='input' ><label>이메일</label></div><input type='text' name='email' size = '23' maxlength = '20' value="<%=vo.getEmail()%>"><p/>
				<div class='input'><label>주소</label></div>
				<select name='address' size='1'>
					<option <% if(vo.getAddress().equals("서울 특별시")){ %> selected="selected" <%} %> value='서울 특별시'>서울 특별시</option>
					<option <% if(vo.getAddress().equals("경기도")){ %> selected="selected" <%} %> value='경기도'>경기도</option>
					<option <% if(vo.getAddress().equals("강원도")){ %> selected="selected" <%} %> value='강원도'>강원도</option>
					<option <% if(vo.getAddress().equals("충청도")){ %> selected="selected" <%} %> value='충청도'>충청도</option>
					<option <% if(vo.getAddress().equals("전라도")){ %> selected="selected" <%} %> value='전라도'>전라도</option>
					<option <% if(vo.getAddress().equals("경상도")){ %> selected="selected" <%} %> value='경상도'>경상도</option>
					<option <% if(vo.getAddress().equals("부산 광역시")){ %> selected="selected" <%} %> value='부산 광역시'>부산 광역시</option>
					<option <% if(vo.getAddress().equals("대구 광역시")){ %> selected="selected" <%} %> value='대구 광역시'>대구 광역시</option>
					<option <% if(vo.getAddress().equals("인천 광역시")){ %> selected="selected" <%} %> value='인천 광역시'>인천 광역시</option>
					<option <% if(vo.getAddress().equals("대전 광역시")){ %> selected="selected" <%} %> value='대전 광역시'>대전 광역시</option>
					<option <% if(vo.getAddress().equals("울산 광역시")){ %> selected="selected" <%} %> value='울산 광역시'>울산 광역시</option>
					<option <% if(vo.getAddress().equals("세종 특별자치시")){ %> selected="selected" <%} %> value='세종 특별자치시'>세종 특별자치시</option>
					<option <% if(vo.getAddress().equals("제주 특별자치도")){ %> selected="selected" <%} %> value='제주 특별자치도'>제주 특별자치도</option>
				</select>
				<p/>
			</div>
	
	
	
			
			<div class = 'line'>
				<hr/>
			</div>
	
	
	
			
			
			<div class = 'qnapart'>
				<div class='input'><label>비밀번호 질문</label></div>
				<select name='question' size='1' value="<%=vo.getQuestion()%>">
					<option <% if(vo.getQuestion().equals("애완동물의 이름은?")){ %> selected="selected" <%} %> value='애완동물의 이름은?'>애완동물의 이름은?</option>
					<option <% if(vo.getQuestion().equals("애완동물의 품종은?")){ %> selected="selected" <%} %> value='애완동물의 품종은?'>애완동물의 품종은?</option>
					<option <% if(vo.getQuestion().equals("첫사랑의 이름은?")){ %> selected="selected" <%} %> value='첫사랑의 이름은?'>첫사랑의 이름은?</option>
					<option <% if(vo.getQuestion().equals("출신 초등학교는?")){ %> selected="selected" <%} %> value='출신 초등학교는?'>출신 초등학교는?</option>
					<option <% if(vo.getQuestion().equals("좋아하는 음식은?")){ %> selected="selected" <%} %> value='좋아하는 음식은?'>좋아하는 음식은?</option>
				</select>
				<p/>
				<div class='input'><label>비밀번호 답변</label></div><input type='text' name='answer' size = '23' maxlength = '20' value="<%=vo.getAnswer()%>"><p/>
			</div>
			
			
			
			
			<div class = 'btnall' align="center">
				<input type='button' value='확인' id='btnModify'/>
				<input type='button' value='취소' id='btnCancle'/>
			</div>
			
			
		</form>
	</div>	
</body>

<script>modifyInit();</script>

</html>